/**
 *
 * 首页 api
 *
 */

export default {
    goodsList: {
        method: 'POST',
        url: '/api/api/goods/page',
        name: "goodsList"
    },

    goodsAdd: {
        method: 'POST',
        url: '/api/api/goods/add',
        name: "goodsAdd"
    },

    goodDetail: {
        method: 'GET',
        url: '/api/api/goods/get',
        name: "goodDetail"
    },

    addCart:{
        method: 'POST',
        url: '/api/api/goods/addToCart',
        name: "addCart"
    },
    delGood:{
        method: 'POST',
        url: '/api/api/goods/deleteCartItemById',
        name: "addCart"
    },
    addOrder:{
        method:'POST',
        url:'/api/api/goods/addOrder',
        name:'addOrder'
    },

    cartList:{
        method:'GET',
        url:'/api/api/goods/getUserCartDetail',
        name:'cartList'
    },

    orderList:{
        method:'POST',
        url:'/api/api/goods/getOrderPage',
        name:'orderList'
    },

    cartDel:{
        method:'POST',
        url:'/api/api/goods/deleteCartItemById',
        name:'cartDel'
    },
    getSomethingA: {
        method: 'GET',
        url: '/users/getUserList',
        name: "getSomethingA"
    },
    postSomethingB: {
        method: 'POST',
        url: '/users/insertUser',
        name: "postSomethingB"
    }
}
